﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WMS.Infrasturcture.Migrations
{
    /// <inheritdoc />
    public partial class log10 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "warehouseSupervisors",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "warehouseInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "warehouseDepts",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "uploadattachments",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "storageWarehouses",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "storagelocationInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "productInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "inventoryInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DataStatus",
                table: "handlerInfos",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "warehouseSupervisors");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "warehouseInfos");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "warehouseDepts");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "uploadattachments");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "storageWarehouses");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "storagelocationInfos");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "productInfos");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "inventoryInfos");

            migrationBuilder.DropColumn(
                name: "DataStatus",
                table: "handlerInfos");
        }
    }
}
